<%@ include file="../common/base.jsp" %>
<%@ page contentType= "text/html;charset=utf-8" %>
<%@ page language="java" import="com.octopus.optiworks.model.Product"%>
<%@ page language="java" import="com.octopus.optiworks.service.ConfigurationService"%>
<% Product product = (Product)request.getAttribute("product"); %>
<% boolean isAutoOperatorDate = ConfigurationService.getInstance().isAutoOpeartorDate() ; %>
<% int i = 0; %>

<% if((product.getStep20Datas() != null && product.getStep20Datas().size() > 0)
	|| (product.getStep30_1Datas() != null && product.getStep30_1Datas().size() > 0) 
	|| (product.getStep40Datas() != null && product.getStep40Datas().size() > 0) 
	|| (product.getStep50Datas() != null && product.getStep50Datas().size() > 0) 
	|| (product.getStep60Datas() != null && product.getStep60Datas().size() > 0)){ %>
<table rules="all"  width="100%">
	<tr>
		<td>
			制程步骤
		</td>
		<c:forEach items="${product.step20Datas}">
		<td <c:if test="${not empty step20}">bgcolor="#F0F0FF"</c:if>>
			<strong <c:if test="${not empty step20}">style="color:#A0A0FF"</c:if>>Step20贴片及封蘑菇头</strong>
			<shiro:hasPermission name="process:edit">
			<c:if test="${empty step20 && empty View}">
			<br>
			<a href="./sedit.o?productId=<c:out value='${product.id}'/>&step=step20">
				<fmt:message key="Edit" />
			</a>
			</c:if>
			</shiro:hasPermission>
		</td>
		</c:forEach>
		<c:forEach items="${product.step30_1Datas}">
		<td <c:if test="${not empty step30_1}">bgcolor="#F0F0FF"</c:if>>
			<strong <c:if test="${not empty step30_1}">style="color:#A0A0FF"</c:if>>Step30贴8度面及封腰鼓</strong>
			<shiro:hasPermission name="process:edit">
			<c:if test="${empty step30_1 && empty View}">
			<br>
			<a href="./sedit.o?productId=<c:out value='${product.id}'/>&step=step30_1">
				<fmt:message key="Edit" />
			</a>
			</c:if>
			</shiro:hasPermission>
		</td>
		</c:forEach>
		<c:forEach items="${product.step40Datas}">
		<td <c:if test="${not empty step40}">bgcolor="#F0F0FF"</c:if>>
			<strong <c:if test="${not empty step40}">style="color:#A0A0FF"</c:if>>Step40装玻璃管</strong>
			<shiro:hasPermission name="process:edit">
			<c:if test="${empty step40 && empty View}">
			<br>
			<a href="./sedit.o?productId=<c:out value='${product.id}'/>&step=step40">
				<fmt:message key="Edit" />
			</a>
			</c:if>
			</shiro:hasPermission>
		</td>
		</c:forEach>
		<c:forEach items="${product.step50Datas}">
		<td <c:if test="${not empty step50}">bgcolor="#F0F0FF"</c:if>>
			<strong <c:if test="${not empty step50}">style="color:#A0A0FF"</c:if>>Step50装铜管</strong>
			<shiro:hasPermission name="process:edit">
			<c:if test="${empty step50 && empty View}">
			<br>
			<a href="./sedit.o?productId=<c:out value='${product.id}'/>&step=step50">
				<fmt:message key="Edit" />
			</a>
			</c:if>
			</shiro:hasPermission>
		</td>
		</c:forEach>
		<c:forEach items="${product.step60Datas}">
		<td <c:if test="${not empty step60}">bgcolor="#F0F0FF"</c:if>>
			<strong <c:if test="${not empty step60}">style="color:#A0A0FF"</c:if>>Step60封缝隙</strong>
			<shiro:hasPermission name="process:edit">
			<c:if test="${empty step60 && empty View}">
			<br>
			<a href="./sedit.o?productId=<c:out value='${product.id}'/>&step=step60">
				<fmt:message key="Edit" />
			</a>
			</c:if>
			</shiro:hasPermission>
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			MPI
		</td>
		<c:forEach items="${product.step20Datas}">
		<td <c:if test="${not empty step20}">bgcolor="#F0F0FF"</c:if>>
			<strong>ZY-60-078</strong>
		</td>
		</c:forEach>
		<c:forEach items="${product.step30_1Datas}">
		<td <c:if test="${not empty step30_1}">bgcolor="#F0F0FF"</c:if>>
			<strong>ZY-60-081</strong>
		</td>
		</c:forEach>
		<c:forEach items="${product.step40Datas}">
		<td <c:if test="${not empty step40}">bgcolor="#F0F0FF"</c:if>>
			<strong>ZY-60-084</strong>
		</td>
		</c:forEach>
		<c:forEach items="${product.step50Datas}">
		<td <c:if test="${not empty step50}">bgcolor="#F0F0FF"</c:if>>
			<strong>ZY-60-084</strong>
		</td>
		</c:forEach>
		<c:forEach items="${product.step60Datas}">
		<td <c:if test="${not empty step60}">bgcolor="#F0F0FF"</c:if>>
			<strong>ZY-60-084</strong>
		</td>
		</c:forEach>
	</tr>



	<c:if test="${not empty step20}">
	<input type="hidden" name="className" value="com.octopus.optiworks.model.Step20Data">
	<input type="hidden" name="step" value="step20">
	<tr>
		<td>
			Operator/Date
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td bgcolor="#F0F0FF">
			<input type="hidden" name="product" value="<c:out value="${step20Data.product.id}" />">
			<input type="hidden" name="id" value="<c:out value="${step20Data.id}" />">
			<% if(isAutoOperatorDate){ %>
			<c:out value="${step20Data.operator}" />
			/
			<fmt:formatDate  value="${step20Data.date}" pattern="yyyy-MM-dd HH:mm"/>
			<% }else{ %>
			<select name="operator">
				<c:forEach var="user" items="${users}">
				<option value="<c:out value="${user.username}" />" 
				<c:if test="${(null==step20Data.operator && user.username==currentUser.username) || (null!=step20Data.operator && user.username==step20Data.operator)}">
				selected="selected"
				</c:if>
				><c:out value="${user.username}" /></option>
				</c:forEach>
				</select>
				/<br>
				<input type="text" name="date" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<fmt:formatDate  value="${step20Data.date}" pattern="yyyy-MM-dd HH:mm"/>">
			<% } %>
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.operator}" />
			/
			<fmt:formatDate  value="${step30_1Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.operator}" />
			/
			<fmt:formatDate  value="${step40Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.operator}" />
			/
			<fmt:formatDate  value="${step50Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.operator}" />
			/
			<fmt:formatDate  value="${step60Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			所用胶水批号
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td bgcolor="#F0F0FF">
			<input type="text" name="gumCode" style="width:130px" value="<c:out value="${step20Data.gumCode}" />">
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.gumCode}" />
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			进烤箱时间
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td bgcolor="#F0F0FF">
			<!--  
			<input type="text" name="beginTime" size="3" value="<c:out value="${step20Data.beginTime}" />">
			-->
			<input type="text" name="beginTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<c:out value="${step20Data.beginTime}" />">
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.beginTime}" />
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			出烤箱时间
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td bgcolor="#F0F0FF">
			<!-- 
			<input type="text" name="endTime" size="3" value="<c:out value="${step20Data.endTime}" />">
			 -->
			<input type="text" name="endTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<c:out value="${step20Data.endTime}" />">
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.endTime}" />
		</td>
		</c:forEach>
	</tr>
	</c:if>
	
	
	
	<c:if test="${not empty step30_1}">
	<input type="hidden" name="className" value="com.octopus.optiworks.model.Step30_1Data">
	<input type="hidden" name="step" value="step30_1">
	<tr>
		<td style="bgcolor:red">
			Operator/Date
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.operator}" />/<fmt:formatDate  value="${step20Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td bgcolor="#F0F0FF">
			<input type="hidden" name="product" value="<c:out value="${step30_1Data.product.id}" />">
			<input type="hidden" name="id" value="<c:out value="${step30_1Data.id}" />">
			<% if(isAutoOperatorDate){ %>
			<c:out value="${step30_1Data.operator}" />
			/
			<fmt:formatDate  value="${step30_1Data.date}" pattern="yyyy-MM-dd HH:mm"/>
			<% }else{ %>
			<select name="operator">
				<c:forEach var="user" items="${users}">
				<option value="<c:out value="${user.username}" />" 
				<c:if test="${(null==step30_1Data.operator && user.username==currentUser.username) || (null!=step30_1Data.operator && user.username==step30_1Data.operator)}">
				selected="selected"
				</c:if>
				><c:out value="${user.username}" /></option>
				</c:forEach>
				</select>
				/<br>
				<input type="text" name="date" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<fmt:formatDate  value="${step30_1Data.date}" pattern="yyyy-MM-dd HH:mm"/>">
			<% } %>
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.operator}" />/<fmt:formatDate  value="${step40Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.operator}" />/<fmt:formatDate  value="${step50Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.operator}" />/<fmt:formatDate  value="${step60Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			所用胶水批号
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td bgcolor="#F0F0FF">
			<input type="text" name="gumCode" style="width:130px" value="<c:out value="${step30_1Data.gumCode}" />">
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.gumCode}" />
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			进烤箱时间
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td bgcolor="#F0F0FF">
			<!--  
			<input type="text" name="beginTime" size="3" value="<c:out value="${step30_1Data.beginTime}" />">
			-->
			<input type="text" name="beginTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<c:out value="${step30_1Data.beginTime}" />">
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.beginTime}" />
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			出烤箱时间
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td bgcolor="#F0F0FF">
			<!--  
			<input type="text" name="endTime" size="3" value="<c:out value="${step30_1Data.endTime}" />">
			-->
			<input type="text" name="endTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<c:out value="${step30_1Data.endTime}" />">
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.endTime}" />
		</td>
		</c:forEach>
	</tr>
	</c:if>
	
	
	
	<c:if test="${not empty step40}">
	<input type="hidden" name="className" value="com.octopus.optiworks.model.Step40Data">
	<input type="hidden" name="step" value="step40">
	<tr>
		<td>
			Operator/Date
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.operator}" />/<fmt:formatDate  value="${step20Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.operator}" />/<fmt:formatDate  value="${step30_1Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td bgcolor="#F0F0FF">
			<input type="hidden" name="product" value="<c:out value="${step40Data.product.id}" />">
			<input type="hidden" name="id" value="<c:out value="${step40Data.id}" />">
			<% if(isAutoOperatorDate){ %>
			<c:out value="${step40Data.operator}" />
			/
			<fmt:formatDate  value="${step40Data.date}" pattern="yyyy-MM-dd HH:mm"/>
			<% }else{ %>
			<select name="operator">
				<c:forEach var="user" items="${users}">
				<option value="<c:out value="${user.username}" />" 
				<c:if test="${(null==step40Data.operator && user.username==currentUser.username) || (null!=step40Data.operator && user.username==step40Data.operator)}">
				selected="selected"
				</c:if>
				><c:out value="${user.username}" /></option>
				</c:forEach>
				</select>
				/<br>
				<input type="text" name="date" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<fmt:formatDate  value="${step40Data.date}" pattern="yyyy-MM-dd HH:mm"/>">
			<% } %>
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.operator}" />/<fmt:formatDate  value="${step50Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.operator}" />/<fmt:formatDate  value="${step60Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			所用胶水批号
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td bgcolor="#F0F0FF">
			<input type="text" name="gumCode" style="width:130px" value="<c:out value="${step40Data.gumCode}" />">
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.gumCode}" />
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			进烤箱时间
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td bgcolor="#F0F0FF">
			<!--  
			<input type="text" name="beginTime" size="3" value="<c:out value="${step40Data.beginTime}" />">
			-->
			<input type="text" name="beginTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<c:out value="${step40Data.beginTime}" />">
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.beginTime}" />
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			出烤箱时间
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td bgcolor="#F0F0FF">
			<!--  
			<input type="text" name="endTime" size="3" value="<c:out value="${step40Data.endTime}" />">
			-->
			<input type="text" name="endTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<c:out value="${step40Data.endTime}" />">
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.endTime}" />
		</td>
		</c:forEach>
	</tr>
	</c:if>
	
	
	
	<c:if test="${not empty step50}">
	<input type="hidden" name="className" value="com.octopus.optiworks.model.Step50Data">
	<input type="hidden" name="step" value="step50">
	<tr>
		<td>
			Operator/Date
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.operator}" />/<fmt:formatDate  value="${step20Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.operator}" />/<fmt:formatDate  value="${step30_1Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.operator}" />/<fmt:formatDate  value="${step40Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td bgcolor="#F0F0FF">
			<input type="hidden" name="product" value="<c:out value="${step50Data.product.id}" />">
			<input type="hidden" name="id" value="<c:out value="${step50Data.id}" />">
			<% if(isAutoOperatorDate){ %>
			<c:out value="${step50Data.operator}" />
			/
			<fmt:formatDate  value="${step50Data.date}" pattern="yyyy-MM-dd HH:mm"/>
			<% }else{ %>
			<select name="operator">
				<c:forEach var="user" items="${users}">
				<option value="<c:out value="${user.username}" />" 
				<c:if test="${(null==step50Data.operator && user.username==currentUser.username) || (null!=step50Data.operator && user.username==step50Data.operator)}">
				selected="selected"
				</c:if>
				><c:out value="${user.username}" /></option>
				</c:forEach>
				</select>
				/<br>
				<input type="text" name="date" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<fmt:formatDate  value="${step50Data.date}" pattern="yyyy-MM-dd HH:mm"/>">
			<% } %>
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.operator}" />/<fmt:formatDate  value="${step60Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			所需胶水批号
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td bgcolor="#F0F0FF">
			<input type="text" name="gumCode" style="width:130px" value="<c:out value="${step50Data.gumCode}" />">
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.gumCode}" />
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			进烤箱时间
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td bgcolor="#F0F0FF">
			<!--  
			<input type="text" name="beginTime" size="3" value="<c:out value="${step50Data.beginTime}" />">
			-->
			<input type="text" name="beginTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<c:out value="${step50Data.beginTime}" />">
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.beginTime}" />
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			出烤箱时间
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td bgcolor="#F0F0FF">
			<!--  
			<input type="text" name="endTime" size="3" value="<c:out value="${step50Data.endTime}" />">
			-->
			<input type="text" name="endTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<c:out value="${step50Data.endTime}" />">
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.endTime}" />
		</td>
		</c:forEach>
	</tr>
	</c:if>
	
	
	
	<c:if test="${not empty step60}">
	<input type="hidden" name="className" value="com.octopus.optiworks.model.Step60Data">
	<input type="hidden" name="step" value="step60">
	<tr>
		<td>
			Operator/Date
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.operator}" />/<fmt:formatDate  value="${step20Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.operator}" />/<fmt:formatDate  value="${step30_1Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.operator}" />/<fmt:formatDate  value="${step40Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.operator}" />/<fmt:formatDate  value="${step50Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td bgcolor="#F0F0FF">
			<input type="hidden" name="product" value="<c:out value="${step60Data.product.id}" />">
			<input type="hidden" name="id" value="<c:out value="${step60Data.id}" />">
			<% if(isAutoOperatorDate){ %>
			<c:out value="${step60Data.operator}" />
			/
			<fmt:formatDate  value="${step60Data.date}" pattern="yyyy-MM-dd HH:mm"/>
			<% }else{ %>
			<select name="operator">
				<c:forEach var="user" items="${users}">
				<option value="<c:out value="${user.username}" />" 
				<c:if test="${(null==step60Data.operator && user.username==currentUser.username) || (null!=step60Data.operator && user.username==step60Data.operator)}">
				selected="selected"
				</c:if>
				><c:out value="${user.username}" /></option>
				</c:forEach>
				</select>
				/<br>
				<input type="text" name="date" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<fmt:formatDate  value="${step60Data.date}" pattern="yyyy-MM-dd HH:mm"/>">
			<% } %>
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			所需胶水批号
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td bgcolor="#F0F0FF">
			<input type="text" name="gumCode" style="width:130px" value="<c:out value="${step60Data.gumCode}" />">
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			进烤箱时间
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			
			<c:out value="${step40Data.beginTime}" />
			
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td bgcolor="#F0F0FF">
			<!--  
			<input type="text" name="beginTime" size="3" value="<c:out value="${step60Data.beginTime}" />">
			-->
			<input type="text" name="beginTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<c:out value="${step60Data.beginTime}" />">
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			出烤箱时间
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td bgcolor="#F0F0FF">
			<!--  
			<input type="text" name="endTime" size="3" value="<c:out value="${step60Data.endTime}" />">
			-->
			<input type="text" name="endTime" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<c:out value="${step60Data.endTime}" />">
		</td>
		</c:forEach>
	</tr>
	</c:if>
	
	
	
	<c:if test="${(empty step20) and (empty step30_1) and (empty step40) and (empty step50) and (empty step60)}">
	<tr>
		<td>
			Operator/Date
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.operator}" />/<fmt:formatDate  value="${step20Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.operator}" />/<fmt:formatDate  value="${step30_1Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.operator}" />/<fmt:formatDate  value="${step40Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.operator}" />/<fmt:formatDate  value="${step50Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.operator}" />/<fmt:formatDate  value="${step60Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			所用胶水批号
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.gumCode}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.gumCode}" />
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			进烤箱时间
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.beginTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.beginTime}" />
		</td>
		</c:forEach>
	</tr>
	<tr>
		<td>
			出烤箱时间
		</td>
		<c:forEach var="step20Data" varStatus="status" items="${product.step20Datas}">
		<td>
			<c:out value="${step20Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step30_1Data" varStatus="status3_1" items="${product.step30_1Datas}">
		<td>
			<c:out value="${step30_1Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step40Data" varStatus="status4" items="${product.step40Datas}">
		<td>
			<c:out value="${step40Data.endTime}" />
					</td>
		</c:forEach>
		<c:forEach var="step50Data" varStatus="status5" items="${product.step50Datas}">
		<td>
			<c:out value="${step50Data.endTime}" />
		</td>
		</c:forEach>
		<c:forEach var="step60Data" varStatus="status6" items="${product.step60Datas}">
		<td>
			<c:out value="${step60Data.endTime}" />
		</td>
		</c:forEach>
	</tr>
	</c:if>
</table>
<br>
<% }%>
<% if(product.getStep30_2Datas() != null && product.getStep30_2Datas().size() > 0){ %>


<c:if test="${not empty product.step30_2Datas}">
<table rules="all"  width="100%">
	<c:if test="${not empty step30_2}">
	<input type="hidden" name="className" value="com.octopus.optiworks.model.Step30_2Data">
	<input type="hidden" name="step" value="step30_2">
	<c:forEach var="step30_2Data" varStatus="status3_2" items="${product.step30_2Datas}">
	<input type="hidden" name="product" value="<c:out value="${step30_2Data.product.id}" />">
	<input type="hidden" name="id" value="<c:out value="${step30_2Data.id}" />">
	<tr>
		<td colspan="4" bgcolor="#F0F0FF">
			<strong style="color:#A0A0FF">
				Step30 &nbsp;&nbsp; 贴8度测试数据 &nbsp;&nbsp; 测试用光源编号: 
				<input type="text" name="testLightCode" value="<c:out value="${step30_2Data.testLightCode}" />">
			</strong>
		</td>
	</tr>
	<tr>
		<td bgcolor="#F0F0FF">
			上胶前常温反射IL(dB)
		</td>
		<td  bgcolor="#F0F0FF">
			上胶后常温反射IL(dB)
		</td>
		<td bgcolor="#F0F0FF">
			Operator
		</td>
		<td bgcolor="#F0F0FF">
			Date
		</td>
	</tr>
	<tr height="20px">
		<td bgcolor="#F0F0FF">
			<input type="text" name="gumBeforeIl" value="<c:out value="${step30_2Data.gumBeforeIl}" />">
		</td>
		<td bgcolor="#F0F0FF">
			<input type="text" name="gumAfterIl" value="<c:out value="${step30_2Data.gumAfterIl}" />">
		</td>
		<% if(isAutoOperatorDate){ %>
		<td bgcolor="#F0F0FF">
			<c:out value="${step30_2Data.operator}" />
		</td>
		<td bgcolor="#F0F0FF">
			<fmt:formatDate  value="${step30_2Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
		<% }else{ %>
		<td bgcolor="#F0F0FF">
			<select name="operator">
			<c:forEach var="user" items="${users}">
			<option value="<c:out value="${user.username}" />" 
			<c:if test="${(null==step30_2Data.operator && user.username==currentUser.username) || (null!=step30_2Data.operator && user.username==step30_2Data.operator)}">
			selected="selected"
			</c:if>
			><c:out value="${user.username}" /></option>
			</c:forEach>
			</select>
		</td>
		<td bgcolor="#F0F0FF">
			<input type="text" name="date" onfocus="WdatePicker({dateFmt:'yyyy-MM-dd HH:mm'})" class="Wdate" style="width:130px" value="<fmt:formatDate  value="${step30_2Data.date}" pattern="yyyy-MM-dd HH:mm"/>">
		</td>
		<% } %>
	</tr>
	</c:forEach>
	</c:if>
	
	<c:if test="${empty step30_2}">
	<c:forEach var="step30_2Data" varStatus="status3_2" items="${product.step30_2Datas}">
	<tr>
		<td colspan="4">
			<strong>Step30 &nbsp;&nbsp; 贴8度测试数据 &nbsp;&nbsp; 测试用光源编号: <c:out value="${step30_2Data.testLightCode}" /></strong>
			<shiro:hasPermission name="process:edit">
			<c:if test="${empty step30_2 && empty View}">
			&nbsp;&nbsp;
			<a href="./sedit.o?productId=<c:out value='${product.id}'/>&step=step30_2">
				<fmt:message key="Edit" />
			</a>
			</c:if>
			</shiro:hasPermission>
		</td>
	</tr>
	<tr>
		<td>
			上胶前常温反射IL(dB)
		</td>
		<td>
			上胶后常温反射IL(dB)
		</td>
		<td>
			Operator
		</td>
		<td>
			Date
		</td>
	</tr>
	<tr height="20px">
		<td>
			<c:out value="${step30_2Data.gumBeforeIl}" />
		</td>
		<td>
			<c:out value="${step30_2Data.gumAfterIl}" />
		</td>
		<td>
			<c:out value="${step30_2Data.operator}" />
		</td>
		<td>
			<fmt:formatDate  value="${step30_2Data.date}" pattern="yyyy-MM-dd HH:mm"/>
		</td>
	</tr>
	</c:forEach>
	</c:if>
	</table>
	</c:if>


<c:if test="${not empty product.step30_2Datas}">
<c:forEach var="step30_2Data" varStatus="status3_2" items="${product.step30_2Datas}">
	<c:if test="${not empty step30_2}">
	<table width="100%" bgcolor="#F0F0FF">
		<tr>
			<td align="right">
				<fmt:message key="label.common.testresult" />
				<c:if test="${step30_2Data.testResult=='Spec' || empty step30_2Data.testResult}">
					<input type="radio" name="<%= StepActionUtil.TESTRESULT %>" value="<%= StepActionUtil.TESTRESULT_SPEC %>" checked><fmt:message key="label.common.specauto" />
				</c:if>
				<c:if test="${step30_2Data.testResult!='Spec' && not empty step30_2Data.testResult}">
					<input type="radio" name="<%= StepActionUtil.TESTRESULT %>" value="<%= StepActionUtil.TESTRESULT_SPEC %>" ><fmt:message key="label.common.specauto" />
				</c:if>
				<c:if test="${step30_2Data.testResult=='Pass'}">
					<input type="radio" name="<%= StepActionUtil.TESTRESULT %>" value="<%= StepActionUtil.TESTRESULT_PASS %>" checked><fmt:message key="label.common.pass" />
				</c:if>
				<c:if test="${step30_2Data.testResult!='Pass'}">
					<input type="radio" name="<%= StepActionUtil.TESTRESULT %>" value="<%= StepActionUtil.TESTRESULT_PASS %>" ><fmt:message key="label.common.pass" />
				</c:if>
				<c:if test="${step30_2Data.testResult=='Waive'}">
					<input type="radio" name="<%= StepActionUtil.TESTRESULT %>" value="<%= StepActionUtil.TESTRESULT_WAIVE %>" checked><fmt:message key="label.common.waive" />
				</c:if>
				<c:if test="${step30_2Data.testResult!='Waive'}">
					<input type="radio" name="<%= StepActionUtil.TESTRESULT %>" value="<%= StepActionUtil.TESTRESULT_WAIVE %>" ><fmt:message key="label.common.waive" />
				</c:if>
				<c:if test="${step30_2Data.testResult=='Fail'}">
					<input type="radio" name="<%= StepActionUtil.TESTRESULT %>" value="<%= StepActionUtil.TESTRESULT_FAILURE %>" checked><fmt:message key="label.common.fail" />
				</c:if>
				<c:if test="${step30_2Data.testResult!='Fail'}">
					<input type="radio" name="<%= StepActionUtil.TESTRESULT %>" value="<%= StepActionUtil.TESTRESULT_FAILURE %>" ><fmt:message key="label.common.fail" />
				</c:if>
			</td>
		</tr>
	</table>
	</c:if>
	<c:if test="${empty step30_2}">
	<table width="100%">
		<tr>
			<td align="right">
				测试结果:
				<c:out value="${step30_2Data.testResult}" />
			</td>
		</tr>
	</table>
	</c:if>
</c:forEach>
</c:if>

<% }%>



